/**
 * @Title: caseAudit_list_service.js
 * @Description: TODO
 * Copyright: Copyright (c) 2014
 * Company:中国平安
 *
 * @Project HIMS-FWA
 * @date 2014年10月27日 下午4:43:38
 * @version V1.0
 */
;
(function(){
    'use strict';

    var app = angular.module('fwa.services');
    app.service('OrgApproveEvaluationService',['$http','BaseURL', function($http, baseUrl){

        var debug = false;
        var serv = this;
        
        
        serv.loadIntgrityEvalInfo = function(parameter){
            return $http({
                method: "get",
                url:baseUrl+'orgApprove/loadIntgrityEvalInfo.do',
                params:parameter
            });
        }
        

        /**
         * 根据id加载对应的诚信类别考评详情
         */
        serv.loadIntgrityEvalTypeInfo = function(parameter){
            return $http({
                method: "get",
                url:baseUrl+'orgApprove/loadIntgrityEvalTypeInfo.do',
                params:parameter
            });
        }
        
        
        
        /**
         * 根据id加载对应的诚信类别考评详情
         */
        serv.loadEvaluationFinishInfo = function(parameter){
            return $http({
                method: "get",
                url:baseUrl+'orgApprove/loadEvaluationFinishInfo.do',
                params:parameter
            });
        }
        
        
        /**
         * 根据id加载对应的诚信考评详情
         */
        serv.loadIntgrityEvalDetailInfo = function(parameter){
            return $http({
                method: "get",
                url:baseUrl+'orgApprove/loadIntgrityEvalDetailInfo.do',
                params:parameter
            });
        }
        
        
        /**
         * 根据 诚信考评表子表 的主键去加载对应的意见信息
         */
        serv.loadEvaluationOpinionInfo = function(parameter){
            return $http({
                method: "get",
                url:baseUrl+'orgApprove/getEvaluationOpinionById.do',
                params:parameter
            });
        }

        /**
         * 添加诚信考评意见表
         */
        serv.saveEvaluationOpinion = function(parameter){
            return $http.post(baseUrl + 'orgReview/addEvaluationOpinion.do',parameter);
        }
        
    }]);

})();
